
ADC = [0:1:4095];
offset = 2048;
I = ((ADC - offset)*3.3/4096)/20/0.005;
Ictrl = (ADC - offset)/2048;

syms x;
f(x) = (((x*2048 + offset) - offset)*3.3/4096)/20/0.005;
diff(f(x))
plot(Ictrl,I);